*
* Purpose:
*	Add variables for regression analysis
*
* Last update:
*	October 28, 2022
*

gen dominated_choice = (dominated_dropping_applicant_id == 1 | dominated_flipping_applicant_id == 1)
lab var dominated_choice "Dominated choice"

gen costly_dominated_lower = (costly_dominated_drop_DA_id == 1 | costly_dominated_flip_DA_id == 1)
lab var costly_dominated_lower "Ex post costly dominated choices: Lower bound"

gen costly_dominated_upper = (costly_dominated_drop_id == 1 | costly_dominated_flip_id == 1)
lab var costly_dominated_upper "Ex post costly dominated choices: Upper bound"

lab var voc_school "Vocational school"
lab var countycapital "County capital" 
lab var town "Town"
lab var village "Village" 

lab var GPA11_std "11th-grade GPA (standardized)"

gen age_missing = age == .
lab var age_missing "Age -- missing"

replace age = 0 if age_missing == 1

gen female_missing = female == .
lab var female_missing "Female -- missing"
replace female = 0 if female_missing == 1

gen other_school = (sec_school == 0 & voc_school == 0)
lab var other_school "Other school"

replace grossincome = 0 if grossincome_missing == 1
replace unempl_rate = 0 if unempl_missing == 1
